package agenda

trait Timeable{
	
	def getStartTime() : Long
	
	def getEndTime() : Long

	def startsBefore(other : Timeable) : Boolean = {
		(other != null) && (this.getStartTime() <= other.getStartTime());
	}
	
	def endsAfter(other : Timeable) : Boolean = {
		(other != null) && (this.getEndTime() >= other.getEndTime());
	}
}